<?php

class MRankList extends MY_Model {

	protected $table = 'rank_list';
	private $filter = array();

    function __construct() {
        parent::__construct();
    }
    
	public function getQuery($limit=null){
		$this->db->select('*');
		$this->db->from($this->table);
		if($limit != null)
			$this->db->limit($limit['limit'],$limit['offset']);

		$this->formfilter->doFilter();
		$rtn = $this->db->get();
		return $rtn;
	}

	public function getList($limit){
		$result = $this->getQuery($limit)->result();
		return $result;
	}
	
	public function getCount(){
		$query = $this->getQuery();
		return $query->num_rows();
	}
}
